#include "thread.hpp"

using namespace ThreadModule;

int main()
{
    Thread t([](){while(1) {std::cout << "Hello" << std::endl; sleep(1); }});
    std::cout << sizeof(t) << std::endl;
    std::cout << sizeof(pthread_t) << std::endl;
    t.Start();
    //ssleep(3);
    t.Detach();
    sleep(5);
    t.Stop();
    t.Join();
    return 0;
}